<!DOCTYPE html>
<html ng-app="myApp">
<head lang="en">
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="stylesheet" href="css/style2L.css" />
    <script src="js/angular.min.js"></script>
    <script src="js/angular-route.min.js"></script>
    <script src="js/jquery.min.js"></script>
    <!-- <script src="js/style.js"></script> -->
     <script src="js/kidJS/kidLogin.js"></script>
</head>
<body ng-controller="kNews">

<!-- 头部 -->
<header>
    <!-- 顶部 -->
    <div id="top" class="clear">
        <p>
            <a href="#"></a>
          
            <a href="admin/index">管理员登陆入口</a>
        </p>
    </div>
    <!-- 顶部 -->
    <!-- 导航 -->
    <nav class="clear">
          <ul class="nav">
            <li class="item">
                <a href="main.html">首页</a>
            </li>
            <li class="item">
                <a href="javascript:;">介绍</a>
                <div class="submenue">
                    <ul class="clear">
                        <li><a href="#">学校介绍</a></li>
                        <li><a href="visitor/sub4">师资介绍</a></li>
                        <li><a href="visitor/sub1">课程介绍</a></li>
                    </ul>
                </div>
            </li>
            <li class="item">
                <a href="visitor/sub2">优秀作品展示</a>
            </li>
            <li class="item">
                <a href="visitor/sub3">招生简章</a>
            </li>
            
        </ul>
    </nav>
    <!-- 导航 -->
    <!-- 登录 -->
    <section id="login">
       <form id="loginform"  method="post"  action="login/StudentLogin.action">
        <div class="content clear">
     
            <h3>登&nbsp录</h3>
            <div class="usr">
                <label>用户名</label>
                <input type="text" value=""  name="username"/>
            </div>
            <div class="pwd">
                <label>密码</label>
                <input type="password" value=""   name="password"/>
            </div>
        </div>
        <div class="bottom">
            <a href="javascript:;"  onclick="Stulogin()">登录</a>
            <a href="#">注册</a>
          
        </div>
          </form>
    </section>
    <!-- 登录 -->
</header>
<!-- 头部 -->

<!-- 主体 -->
<div>
    <article id="index">
        <!-- 轮播图 -->
	    <section class="slideBox"  style="color:red">
	        <div class="main_ad">
                <div class="ad"><a href="#" ng-bind="notice"></a></div>
            </div>
	        <a href="#" class="lBtn">
	            <h3 ng-bind="a">软件工程实践课程作品</h3>
	            <p>软件1301  胡宇翔  1312190127</p>
	            <p>软件1301   凌巧     1311050121</p>
	        </a>
	        <a href="#" class="rBtn">
	            <h3>软件工程实践课程作品</h3>
	            <p>软件13A    李想   1312190408</p>
	            <p>软件13A     张怡  1312190409</p>
	             <p>软件13A    刘得胜   1312190201</p>
	        </a>
	    </section>
	    <!-- 轮播图 -->
	    <!-- 信息 -->
	    <section class="info">
            <ul class="link">
            	<li><a href="#">好烦好烦好烦和回复就坚决打击打击的基督教基督教的</a></li>
                <li><a href="#">黄东赫减肥夫妇罚款罚款扣分扣分扣分看家的口袋空空的</a></li>
                <li><a href="#">好烦好烦好烦和回复就坚决打击打击的基督教基督教的</a></li>
                <li><a href="#">的覅覅加蜂蜜蜂蜜敷面膜抚摸抚摸抚摸抚摸</a></li>
                <li><a href="#">度假酒店酒店酒店距女女年份就减肥减肥</a></li>
                <li><a href="#">月份又要翻页翻页翻页翻页翻页翻页</a></li>
                <li><a href="#">风格瑞风瑞风瑞风瑞风日日日日日日夫人夫人发</a></li>
            </ul>
            <div id="wrap">
                <ul id="list">
                    <li>1</li>
                    <li>2</li>
                    <li>3</li>
                    <li>4</li>
                    <li>5</li>
                    <li>1</li>
                    <li>2</li>
                    <li>3</li>
                    <li>4</li>
                    <li>5</li>
                </ul>
            </div> 
            <ul class="link">
                <li><a href="#">放假就放假放假减肥减肥减肥</a></li>
                <li><a href="#">呢夫妇</a></li>
                <li><a href="#">夫人夫人发坚决打击打击打击打击</a></li>
                <li><a href="#">你的基督教基督教的经典经典经典简洁的</a></li>
                <li><a href="#">女款吗多么多么多么多么多么</a></li>
            </ul>  
        </section>
	    <!-- 信息 -->
	</article>
</div>
<!-- 主体 -->

<!-- 尾部 -->
<footer>
    <div class="f_content clear">
        <p class="blogroll">
            <a href="#">회사소개</a>
            <a href="#">개인정보취급방침</a>
            <a href="#">이용안내</a>
        </p>
        <div class="search">
            <input type="text" value="family site" />
            <a href="#"></a>
        </div>
        <div class="copyRight">
            <p>서울시 강동구 성내동 5x8-8번지 20x호 I  TEL: 02-47x-45x2  FAX: 02-x78-4x83</p>
            <span>copyright(c) 2010 company co.,ltd. all rights reserved</span>
        </div>
    </div>
</footer>
<!-- 尾部 -->

<script>
	var m = angular.module('myApp', []);
	m.controller('kNews', ['$scope', '$http', function($scope, $http){
		$scope.selectKNewsByNstate = function(state, count){
			$.ajax({
               	type: "post",
                dataType: "json",
                data: 
                {
                	"state" :  state,
                	"count" : count
                },
                url: './KNewsAction!selectKNewsByNstate',
                error: function(request) {
                    console.log();
                },
                success: function(data) {
                	console.log(data);
                	if(state == 1){
                		$scope.notice = data.knewsList[0].ncontent;
                	}else if(state == 2){
                		$scope.links = data.knewsList;
                		console.log($scope.links);
                	}
                	$scope.$apply();
	            }
           	});
		};
		
		$scope.selectKNewsByNstate(1,1);
		//$scope.selectKNewsByNstate(2,5);
	}]);
</script>

</body>
<script type="text/javascript">
 var type=$("#hiddenLoad").val();
function navChangeinite()
{
	  if(type=="yes")		
		      document.getElementById("hidLi").style.display='block';
}
navChangeinite();
</script>
</html>